package demo1;

//匿名内部类
public interface IA {
    void func();

    public static void main(String[] args) {
        new IA(){
            @Override
            public void func() {
                System.out.println("asd");
            }
        }.func();
    }
}
class AA implements IA {
    @Override
    public void func() {
        System.out.println("hello");
    }
}
